﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp_1209.NewMethod
{
    class Cat : Animal
    {
        public override void Eat()
        {
            Console.WriteLine("Cat eats mouse");
        }

        public static void Test()
        {
            Animal a1 = new Animal();
            Animal a2 = new Cat();

            a1.Eat();
            a2.Eat();


        }
    }
}
